package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh活动目标Model;
import com.iris.live.services.data.models.Lsh活动目标ModelPK;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by shixy on 2016/7/14.
 */
@Transactional
public interface Lsh活动目标Repository extends JpaRepository<Lsh活动目标Model, Lsh活动目标ModelPK>, JpaSpecificationExecutor<Lsh活动目标Model> {

    @Query("select a from Lsh活动目标Model a where a.活动编号=?1")
    List<Lsh活动目标Model> findByActCode(Integer code);
}
